<!-- DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -->
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>

<%@page import="us.proyecto.canarios.actions.concursos.EdicionConcursoAction"%><html >
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf8" />

        <title>Application</title>

        <link rel="stylesheet" type="text/css" href="lib/ext/Ext/resources/css/ext-all.css"></link>
        <link rel="stylesheet" type="text/css" href="lib/ext/Ext/resources/css/xtheme-gray.css"></link>
        <link rel="stylesheet" type="text/css" href="lib/openlayers/theme/default/style.css"></link>
        <link rel="stylesheet" type="text/css" href="app/css/main.css"></link>

        <script type="text/javascript" src="lib/ext/Ext/adapter/ext/ext-base.js"></script>

        <!-- debug mode (begin) -->
        <script type="text/javascript" src="lib/ext/Ext/ext-all-debug.js"></script>
        <script type="text/javascript" src="app/lib/App/OpenLayers.js"></script>
        <script type="text/javascript" src="lib/geoext/lib/GeoExt.js"></script>
        <script type="text/javascript" src="app/lib/App/layout.js"></script>
        <script type="text/javascript" src="app/lib/App/main.js"></script>
        <%
        	EdicionConcursoAction edicionConcurso=(EdicionConcursoAction)request.getSession().getAttribute("edicionConcurso");
        	String mun = null;
			String coordenadaX;
			String coordenadaY;
			if(edicionConcurso.getConcurso().getMunicipio()!=null) {
				mun = edicionConcurso.getConcurso().getMunicipio().getNombre();
			}
			if(edicionConcurso.getConcurso().getCoordenadaX()!=null){
			    coordenadaX = edicionConcurso.getConcurso().getCoordenadaX();
			    coordenadaY = edicionConcurso.getConcurso().getCoordenadaY();
			}

        %>
        <script type="text/javascript">
        	Ext.namespace("App");

        function inicializar(mun) {

            // global settings
            OpenLayers.ImgPath = "lib/openlayers/img/";
            Ext.QuickTips.init();

            // run App.layout.init() when the page
            // is ready
            Ext.onReady(function() {
                App.layout.init(mun)
            });
        };

        </script>
        <!-- debug mode (end) -->

        <!-- non debug mode (begin) -->
        <!--
        <script type="text/javascript" src="build/app.js"></script>
        -->
        <!-- non debug mode (end) -->

    </head>

    <body id="bCMapa" style="margin: 0px;" onload="init('<%=mun %>');">
    </body>
<html>
